<p id="notice"><%= notice %></p>

<p>
  <b>Id:</b>
  <%= @student.id %>
</p>

<p>
  <b>Name:</b>
  <%= @student.name %>
</p>

<%= link_to 'Edit', edit_student_path(@student) %> |
<%= link_to 'Back', students_path %>

<p>
	<table>
	<tr> <td>Day</td> <td>Name</td> <td>Content</td> <td>comment</td> </td> </tr>
	<% @sv.each do |i| %>
	<tr>
		<td><%=i.day%></td> 
		<td><%=i.name%></td> 
		<td><%=i.content%></td> 
		<td><%=i.cm%></td>  
		<td><%= link_to 'Edit', edit_student_activity_path(i) %> </td>
		<td><%= link_to 'Destroy', student_activity_path(i), method: :delete, data: { confirm: 'do you want to delete?' } %></td>
		
		</tr>
	
	<%end%>
	</table>
</p>
<%= link_to 'New Student activity', new_student_activity_path %>

